import { InjectionKey, Ref } from "vue";



export type ElTooltipInjectionContext = {
  controlled: Ref<boolean>;
  id: Ref<string>;
  open: Ref<Trigger | Trigger[]>;
  onOpen:(e?:Event)=>void;
  onClose:(e?:Event)=>void;
  onToggle:(e?:Event)=>void;
  onShow:() =>void;
  onHide:() =>void;
  updatePopper:() =>void;

}

export const TOOLTIP_INJECTION_KEY:InjectionKey<ElTooltipInjectionContext> =Symbol('elTooltip')
